#ifndef _RELAY_H_
#define _RELAY_H_

#include "stm32f10x.h"

#define Relay_Port GPIOA
#define Relay_Pin  GPIO_Pin_11

//#define Relay_On 		GPIO_WriteBit(Relay_Port, Relay_Pin, Bit_SET)
#define Relay_On 	GPIOA->ODR |= (1<<11)
//#define Relay_Off 	GPIO_WriteBit(Relay_Port, Relay_Pin, Bit_RESET)
#define Relay_Off GPIOA->ODR &= ~(1<<11)

#define Relay_Value GPIO_ReadOutputDataBit(Relay_Port, Relay_Pin)

void Relay_Config(void);

#endif

